import 'package:flutter/material.dart';
import 'package:flutter_taotaoshipin/util/image_utils.dart';
import 'package:flutter_taotaoshipin/widget/load_image.dart';
import 'package:flutter_taotaoshipin/widget/my_scroll_view.dart';
import 'package:get/get.dart';

class ReportResultPage extends StatelessWidget {
  const ReportResultPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        Container(
          decoration: BoxDecoration(
            color: Colors.white,
            image: DecorationImage(
              image: ImageUtils.getAssetImage('report/report_success_bg'),
              fit: BoxFit.fitWidth,
              alignment: Alignment.topCenter,
            ),
          ),
        ),
        Scaffold(
          appBar: AppBar(
            automaticallyImplyLeading: false,
            backgroundColor: Colors.transparent,
            title: Text('举报'),
          ),
          backgroundColor: Colors.transparent,
          body: MyScrollView(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              SizedBox(width: double.infinity, height: 14.5),
              LoadAssetImage(
                'report/report_success',
                width: 80,
                height: 80,
              ),
              SizedBox(height: 17.5),
              Text(
                '举报已成功提交审核',
                style: TextStyle(
                  color: Color(0xFF2D2D2D),
                  fontSize: 16,
                  fontWeight: FontWeight.w900,
                ),
              ),
              SizedBox(height: 6),
              Text(
                '我们将尽快受理，感谢您的积极反馈',
                style: TextStyle(
                  color: Color(0xFF707579),
                  fontSize: 14,
                ),
              ),
            ],
          ),
          bottomNavigationBar: Container(
            padding: EdgeInsets.fromLTRB(31, 13, 31, 13),
            child: SafeArea(
              child: GestureDetector(
                onTap: () {
                  Get.back();
                },
                child: Container(
                  width: double.infinity,
                  height: 41,
                  alignment: Alignment.center,
                  decoration: BoxDecoration(
                    color: Color(0xFFEB435A),
                    borderRadius: BorderRadius.circular(8),
                  ),
                  child: Text(
                    '完成',
                    style: TextStyle(
                      color: Colors.white,
                      fontSize: 14,
                    ),
                  ),
                ),
              ),
            ),
          ),
        ),
      ],
    );
  }
}
